.carousel {
    position: relative;
    width: 100%;
    max-width: 600px; /* 可以根据需要调整 */
    margin: auto;
    overflow: hidden;
  }
  
  .carousel-images img {
    width: 100%;
    display: none; /* 默认隐藏所有图片 */
  }
  
  .carousel-images img.active {
    display: block; /* 当前活动的图片显示 */
  }
  
  .prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    z-index: 100;
  }
  
  .prev {
    left: 10px;
  }
  
  .next {
    right: 10px;
  }